package com.itwxz.forum.service;

import cn.dev33.satoken.util.SaResult;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itwxz.forum.domain.dto.CommentDto;
import com.itwxz.forum.domain.po.ForumCommentParent;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itwxz.forum.domain.vo.CommentParentVo;

/**
* @author Admin
* @description 针对表【forum_comment_parent(一级评论表)】的数据库操作Service
* @createDate 2025-05-13 17:33:49
*/
public interface ForumCommentParentService extends IService<ForumCommentParent> {
    IPage<CommentParentVo> getParentCommentsWithChild(Long postId, int pageNum, int pageSize);

    SaResult addParentComment(CommentDto dto);

    SaResult deleteParentComment(String commentId);
}